package end.bean.ass;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;

import end.bean.Article;

/**
 * 
 * InterAlbum.java 2016-7-4
 * 
 * Copyright zhaocj Inc. All rights reserved. Love Me Like Love Justin Bieber
 */
@SuppressWarnings("serial")
public class InterArticle implements Serializable {
	@JsonIgnore
	private Integer id;
	@JsonIgnore
	private Article article;
	private String thumbnail;
	private String title;
	private Date create_Date;
	@JsonIgnore
	private String summary;
	private Integer set_Count;
	private String author;
	private String type;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Article getArticle() {
		return article;
	}
	public void setArticle(Article article) {
		this.article = article;
	}
	public String getThumbnail() {
		return getArticle().getPicture();
	}
	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}
	public String getTitle() {
		return getArticle().getTitle();
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Date getCreate_Date() {
		return getArticle().getWriteTime();
	}
	public void setCreate_Date(Date create_Date) {
		this.create_Date = create_Date;
	}
	public String getSummary() {
		return getArticle().getContent();
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getSet_Count() {
		return " ";
	}
	public void setSet_Count(Integer set_Count) {
		this.set_Count = set_Count;
	}
	public String getAuthor() {
		return article.getMentor().getMentorName();
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getType() {
		return "1";
	}
	public void setType(String type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return "InterArticle [id=" + id + ", article=" + article
				+ ", thumbnail=" + thumbnail + ", title=" + title
				+ ", create_Date=" + create_Date + ", summary=" + summary
				+ ", set_Count=" + set_Count + ", author=" + author + ", type="
				+ type + "]";
	}
	
	

}
